from rest_framework import serializers
from .models import UserInfo
from ..student.models import ClassInfo
from ..teacher.models import TeachingInfo


class UserSerializer(serializers.ModelSerializer):
    class Meta:
        model = UserInfo
        fields = '__all__'


class ManagedClassSerializer(serializers.ModelSerializer):
    class Meta:
        model = TeachingInfo
        fields = ["ClassID"]


class ClassInfoSerializer(serializers.ModelSerializer):
    class Meta:
        model = ClassInfo
        fields = '__all__'
